package com.lagou.product.service;

import com.github.pagehelper.PageInfo;
import com.lagou.pojo.ProductVO;
import com.lagou.pojo.Products;

public interface ProductService {

    //根据商品id查询商品信息
    Products queryById(Integer productId);

    //根据条件分页查询商品信息
    PageInfo<Products> queryByPage(ProductVO productVO);

    //根据id删除商品
    int deleteById(Integer id);

    //根据id编辑商品
    int updateById(Products products);
}
